package com.scujj.controller;

import com.scujj.pojo.Result;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;


public interface UserController {
    Result loginByPhoneNumber(String phoneNumber, String checkCode);

    Result loginByPhoneNumberAndPassword(String phoneNumber, String password);

    Result registerByPhoneNumber(HashMap<String, Object> args);

    Result getCheckCodeByPhoneNumber(String phoneNumber);

    Result updateUser(Long id,String gender ,String userName, String password, MultipartFile img, String studentID);

    Result getUser(HttpServletRequest httpServletRequest);

    Result getUserByIdList(List<Long> id);

    //换绑手机号
    Result updatePhoneNumber(HashMap<String, Object> args);

    //根据用户名获取用户列表
    Result getUserByUserName(String userName);

    //充值接口
    Result addMoney(HashMap<String, Long> map);

    //消费接口
    Result useMoney(HashMap<String, Long> map);

    //退出登录
    Result logout(HttpServletRequest httpServletRequest);

}
